// src/router/index.js
import {createRouter, createWebHistory} from 'vue-router'

// 引入视图页面组件
import imageProcess from '/src/views/imageProcess/index.vue'
import smallRedBook from '/src/views/smallRedBook/index.vue'
import taoBaoData from '/src/views/taoBaoData/index.vue'
import spuOrder from '/src/views/spuOrder/index.vue'
import taoBaoSpuDownload from '/src/views/taoBaoSpuDownload/index.vue'
import Login from '/src/views/Login/Login.vue'
// 配置路由规则
const routes = [
    {
        path: '/taoBaoData',
        name: '淘宝账单',
        component: taoBaoData
    },
    {
        path: '/smallRedBook',
        name: '小红书资源下载',
        component: smallRedBook
    },
    {
        path: '/imageProcess',
        name: '图片加工',
        component: imageProcess
    },
    {
        path: '/spuOrder',
        name: '图片加工',
        component: spuOrder
    },
    {
        path: '/taoBaoSpuDownload',
        name: '淘宝资源下载',
        component: taoBaoSpuDownload
    },
    {
        path: '/login',
        name: 'Login',
        component: Login
    }
]

// 创建路由对象
const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
